<template>
  <div>
    登录组件
    <button @click="login">登录</button>
  </div>
</template>
<script>
export default {
  name: "login",
  methods: {
    login () {
      localStorage.token = "1279812738912asldfkhdlkfh";
      alert("登录成功")
    }
  },
}
</script>
<style lang="less">
</style>